package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 车牌待审核
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_user_plate_approval")
public class UserPlateApproval extends Model<UserPlateApproval> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "approval_id", type = IdType.ASSIGN_ID)
    private String approvalId;
    /**
     * 原用户ID
     */
    @TableField("original_user_id")
    private String originalUserId;
    /**
     * 原用户手机号
     */
    @TableField("original_mobile")
    private String originalMobile;
    /**
     * 申请用户ID
     */
    @TableField("user_id")
    private String userId;
    /**
     * 申请用户手机号
     */
    @TableField("user_mobile")
    private String userMobile;
    /**
     * 车辆类型:0燃油车1新能源
     */
    @TableField("car_type")
    private Integer carType;
    /**
     * 车牌颜色
     */
    @TableField("vehicle_color")
    private Integer vehicleColor;
    /**
     * ETC卡号
     */
    @TableField("etc_card_id")
    private String etcCardId;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private LocalDateTime addTime;
    /**
     * 审批状态:0待审核1审核通过2审核未通过
     */
    @TableField("approval_status")
    private Integer approvalStatus;
    /**
     * 审批时间
     */
    @TableField("approval_time")
    private LocalDateTime approvalTime;
    /**
     * 审批意见
     */
    @TableField("approval_msg")
    private String approvalMsg;
    /**
     * 行驶证正页
     */
    @TableField("vehicle_license_positive")
    private String vehicleLicensePositive;
    /**
     * 行驶证副页
     */
    @TableField("vehicle_license_deputy")
    private String vehicleLicenseDeputy;
    /**
     * 充电自动确认
     */
    @TableField("auto_confirm_charge")
    private String autoConfirmCharge;
    /**
     * 车牌
     */
    @TableField("plate_number")
    private String plateNumber;
    /**
     * 审核人
     */
    @TableField("approval_user")
    private String approvalUser;
    /**
     * 审核人单位
     */
    @TableField("approval_unit")
    private String approvalUnit;
    /**
     * ETC支付
     */
    @TableField("etc_pay")
    private String etcPay;

    public void freeData() {
        this.approvalId = null;
        this.originalUserId = null;
        this.originalMobile = null;
        this.userId = null;
        this.userMobile = null;
        this.carType = null;
        this.vehicleColor = null;
        this.etcCardId = null;
        this.addTime = null;
        this.approvalStatus = null;
        this.approvalTime = null;
        this.approvalMsg = null;
        this.vehicleLicensePositive = null;
        this.vehicleLicenseDeputy = null;
        this.autoConfirmCharge = null;
        this.plateNumber = null;
        this.approvalUser = null;
        this.approvalUnit = null;
        this.etcPay = null;
    }
}